import request from '@/utils/request'

export function getMenus(params) {
  return request({
    url: '/vue-admin-template/menus/list',
    method: 'get',
    params
  })
}

export function deleteMenus(data) {
  console.log(data);
  return request({
    url: '/vue-admin-template/menus/deleteMenu',
    method: 'post',
    data
  })
}

export function createMenus(data) {
  return request({
    url: '/vue-admin-template/menus/create',
    method: 'post',
    data
  })
}

export function getMenu(params) {
  return request({
    url: '/vue-admin-template/menus/get',
    method: 'get',
    params
  })
}
